package c.h.a.n0;

import android.view.View;
import android.view.View.OnClickListener;
import androidx.appcompat.app.AlertController.b;
import b.b.c.f.a;
import c.h.a.m0.i;
import com.liuzh.deviceinfo.view.SettingsItemView;
import java.util.Objects;

/* compiled from: lambda */
public final /* synthetic */ class c implements OnClickListener {
    public final /* synthetic */ SettingsItemView a;
    public final /* synthetic */ String b;
    public final /* synthetic */ int c;
    public final /* synthetic */ int[] d;
    public final /* synthetic */ CharSequence[] e;

    public /* synthetic */ c(SettingsItemView settingsItemView, String str, int i, int[] iArr, CharSequence[] charSequenceArr) {
        this.a = settingsItemView;
        this.b = str;
        this.c = i;
        this.d = iArr;
        this.e = charSequenceArr;
    }

    public final void onClick(View view) {
        SettingsItemView settingsItemView = this.a;
        String str = this.b;
        int i = this.c;
        int[] iArr = this.d;
        CharSequence[] charSequenceArr = this.e;
        Objects.requireNonNull(settingsItemView);
        i iVar = i.a;
        iVar = i.a;
        i = i.b.getInt(str, i);
        int i2 = 0;
        for (int i3 = 0; i3 < iArr.length; i3++) {
            if (iArr[i3] == i) {
                i2 = i3;
                break;
            }
        }
        a aVar = new a(settingsItemView.getContext());
        CharSequence text = settingsItemView.t.getText();
        b bVar = aVar.a;
        bVar.d = text;
        b bVar2 = new b(settingsItemView, str, iArr, charSequenceArr);
        bVar.p = charSequenceArr;
        bVar.r = bVar2;
        bVar.v = i2;
        bVar.u = true;
        aVar.g();
    }
}
